package com.yml.mall.shipping;

import com.yml.mall.shipping.pojo.InsertAndUpdateDTO;
import com.yml.mall.shipping.pojo.ShippingDTO;
import com.yml.mall.vo.ResponseVO;

import java.util.List;
import java.util.Map;

/**
 * @ClassName ShippingService
 * @Author Administrator
 * @Date 2020/4/10   17:56
 */
public interface ShippingService {

    ResponseVO<Map<String,Integer>> addShipping(InsertAndUpdateDTO insertAndUpdateDTO);

    ResponseVO deleteShipping(Integer shippingId,Integer userId);

    ResponseVO updateShipping(Integer shippingId,InsertAndUpdateDTO insertAndUpdateDTO,Integer userId);

    ResponseVO<ShippingDTO> detail(Integer shippingId,Integer userId);

    ResponseVO<List<ShippingDTO>> shippingList(Integer userId);
}
